package com.bsj.power.common.def.entity.job;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @author LiJiaXin
 * @version 1.0.0
 * @description JobPersonnel
 * @time 2024/5/9 10:45
 */
@Data
@TableName("tab_job_personnel")
@NoArgsConstructor
@AllArgsConstructor
public class JobPersonnel {

    /**
     * 作业id
     */
    @TableId(value = "job_id")
    private Long jobId;

    /**
     * 人员id
     */
    @TableField(value = "personnel_id")
    private Integer personnelId;

    /**
     * 创建时间
     */
    @TableField("create_time")
    private Date createTime;

    public JobPersonnel(Long jobId, Integer personnelId) {
        this.jobId = jobId;
        this.personnelId = personnelId;
    }

}
